package com.movie.ticket.sale.assembly.service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.movie.ticket.sale.assembly.entity.Discount;
import com.movie.ticket.sale.assembly.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import com.movie.ticket.sale.pram.CinemaVip;
import com.movie.ticket.sale.pram.CommentPram;
import com.movie.ticket.sale.pram.OrderPram;
import com.movie.ticket.sale.pram.UserPram;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author muzi
 * @since 2020-12-07
 */
public interface UserService extends IService<User> {
    int changeUser(UserPram userPram);
    List<CommentPram> findCommentPrams(String tel);
    void deleteComment(Integer commentId);
    void addComment(int userId, int orderId, String comment, MultipartFile[] paths, Double degree);
    List<?> findTickets(Integer orderId);
    int changeSeat(int orderId, String[] seats,Integer peridId);
    IPage<Discount> getAllDiscounts(int currPage, int number);
    int changeDiscount(int discountId,int userId1);
    IPage<Discount> getDiscount(int currPage, int number,int userId);
    List<?>  getVip(int currPage, int number,int userId);
    void buyVip(double price,String tradeNuo,int mouth,int userId,int vipId);
    IPage<CinemaVip> getCinemaVip(int currPage, int number);
    IPage<OrderPram> getUserOrders(int currPage, int number, int userId);
    void addComplain(int orderId,String content,int userId);
    int refund(int[] ticketIds);
}
